package com.aaa.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.aaa.entity.DictData;
import com.aaa.vo.Result;

import java.util.List;

/**
 * <p>
 * 字典数据表 服务类
 * </p>
 *
 * @author L
 * @since 2023-03-21
 */
public interface IDictDataService extends IService<DictData> {

    public Result<List<DictData>> findByType(String type);

    Result<String> cacheAsync();

    Result<IPage<DictData>> selectAll(Integer current, Integer size, DictData dictData);

    Result<Boolean> saveOrUpdateDictData(DictData dictData);

    Result<Boolean> deleteDictDataByIds(Long[] dictCodes);
}
